// export function generateStaticParams () {
//   return [{ id: '1' }, { id: '2' }, { id: '3' }]
// }

// Three versions of this page will be statically generated
// using the `params` returned by `generateStaticParams`
// - /product/1
// - /product/2
// - /product/3
//动态路由
export default function Page ({ params }) {
  const { pid } = params
  return (
    <div className="flex justify-center items-center w-40 h-40">
      {pid && (<div className="flex justify-center items-center  w-20 h-20 rounded bg-blue-300 text-center ">product{pid}</div>)}
    </div>
  )

}